If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index.
If you want to use auto-generated object IDs, use the saveObject
operation.
To update some attributes of an existing record, use the partial
operation instead.
To add, update, or replace multiple records, use the batch
operation.
Your Algolia application ID.
Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.
Name of the index on which to perform the operation.
"ALGOLIA_INDEX_NAME"
Unique record identifier.
"test-record-123"
The record. A schemaless object with attributes that are useful in the context of search and discovery.
The body is of type object
.
OK
Response, taskID, unique object identifier, and an update timestamp.